home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
internet
/
irc_i_dodatki
/
mcf4amirc
/
rexx
/
mfaq.amirx
< prev
next >
Wrap
Text File
|
1996-09-17
|
993b
|
13 lines
/* MFAQ.AMIRX -- Send a FAQ to a user
// $VER: MFAQ.AMIRX 4.1 (29.07.96) (MCF Extra Command)
\\ Written by Donald T. Becker (dtbecker@prolog.net) IRC: StarDustr
// Please mail any bug reports/comments to the above address with a subject
\\ header of MCF.AMIRX.
//
\\ ** What to do with this file?
// Put this script in REXX:
\\ Add the following alias
// /alias MFAQ /rx MFAQ FAQDIR %p"
\\ Where FAQDIR is the Directory where FAQs are stored
*/
;parse arg FDir Fname User;User=strip(User,'L');options results;if FDir=""|FName=""|User="" then;do;"echo P="d2c(27)"««Error»" d2c(2) "Usage:" d2c(2) " MFAQ FAQ-DIR FAQ-Name Nick";exit;end;FQName=FDir||Fname||'.faq';if ~exists(FQName) then;do;"echo P="d2c(27)"««Error» FAQ " d2c(2) FQName d2c(2) " does not Exist.";exit;end;getmynick;mynick=RESULT;call open("Input",FQName,"Read");xx=readln("Input");do acntr=1 by 1 until eof("Input");"echo P="d2c(27)"««MCF» :"xx;"RAW PRIVMSG "User" :"xx;xx=readln("Input");end acntr;call close("Input");exit